﻿<!DOCTYPE html>
<html>
<head>
    <title>Eventbrite Helper for WebMatrix - Start Here</title>
    <link href="content/Site.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
</head>
<body>
    <div class="container">
        <div class="header">
            <img src="content/images/webx-icon.png" alt="WebMatrix" />
            <img src="content/images/eventbrite-logo.png" alt="Eventbrite Logo" class="partnerLogo" />
            <h1>
                Microsoft WebMatrix Helpers</h1>
            <h2>
                Eventbrite Helper - Start Here</h2>
        </div>
        <div class="content">
            <div class="navLinks">
                <a href="startHere.htm">Start Here</a> | <a href="reference.htm">Helper Reference</a>
            </div>
            <h3>
                Introduction</h3>
            <p>
                Microsoft WebMatrix provides an easy way to get started with web development, and
                together with new Razor syntax for ASP.NET Web Pages it includes everything you
                need to get your web site up, running and integrated with many other sites and networks,
                in a short period of time. The WebMatrix helpers are designed to make your life
                easier when creating web sites. They provide you a simple and consistent way of
                performing common web development tasks that otherwise would require a great deal
                of custom coding. With a few lines of code you should be able to secure your web
                site using membership, store information in Windows Azure Storage, integrate your
                site with Facebook, among others things.
            </p>
            <p>
                The <strong>Eventbrite Helper</strong> for WebMatrix makes it simple to promote
                your Eventbrite events in your WebMatrix site. With a few lines of code you will
                be able to display your events on your web site with integration with Windows Live
                Calendar and Google Calendar. With the helper in place you can also easily sell
                tickets, or leverage the Eventbrite API for managing your events information.
            </p>
            <img src="content/images/eventbrite-helper.png" height="200" class="centeredImage"
                alt="Eventbrite Helper" />
            <h3>
                Getting Started in 60 Seconds</h3>
            <p>
                The helper mainly consists of a <strong>Eventbrite.dll</strong> library, that should
                be placed in the <strong>Bin</strong> folder of your WebMatrix site, together with
                an Eventbrite folder with some styles. To use the helper follow these steps:</p>
            <ol>
                <li>If you haven't got an Eventbrite account, <a href="https://www.eventbrite.com/signup">
                    sign up</a> for a basic account.</li>
                <li>Start by requesting an application key in <a href="http://www.eventbrite.com/api/key/">
                    this page</a>, which enables you to access the Eventbrite API.
                    <br />
                    <img src="content/images/api-key.png" alt="Getting an API Key" height="200px" class="centeredImage" />
                </li>
                <li>Then retrieve your API user key from your <a href="http://www.eventbrite.com/userkeyapi">
                    account page</a>. The user key is a unique string assigned by Eventbrite which identifies
                    the user making an API call.
                    <br />
                    <img src="content/images/api-user-key.png" alt="Getting an API User Key" height="300px"
                        class="centeredImage" />
                </li>
                <li>Add the following line to the <strong>_AppStart.cshtml</strong> page of your WebMatrix
                    site (if the file does not already exist, create it in the root of the website), replacing the placeholders with your Eventbrite application key and user key.
                    <pre class="code">
@{
    Eventbrite.Initialize(appKey: "{your-app-key}", userKey: "{your-user-key}");  
}</pre>
                </li>
                <li>In any WebMatrix page, add the following line to display your Eventbrite events:
                    <pre class="code">
@Eventbrite.GetUserEventsWidget(count: 10)
</pre>
                </li>
            </ol>
            <h3>
                Running the Eventbrite Helper Sample</h3>
            <p>
                Optionally, you can download a sample WebMatrix web site where you can see the helper
                in action. To download and run it with Microsoft WebMatrix, follow these steps:</p>
            <ol>
                <li>Download the sample site from the helper's <a href="http://eventbritehelper.codeplex.com">
                    Codeplex</a> site, Downloads section. Extract the contents and open the folder in
                    WebMatrix.</li>
                <li>Configure your Eventbrite application key and user key in the <strong>_AppStart.cshtml</strong>
                    page.</li>
                <li>Run the sample! It contains code samples and examples of each feature provided by
                    the helper.</li>
            </ol>
            <h3>
                More Info</h3>
            <p>
                Don't miss the helper's <a href="http://www.youtube.com/watch?v=ZVxL0F3FV90">getting
                    started screencast</a>.
            </p>
            <p>
                You can find more information about the Eventbrite API in <a href="http://developer.eventbrite.com/doc/">
                    http://developer.eventbrite.com/doc/</a>.
            </p>
            <p>
                Learn more on WebMatrix, ASP.NET Web Pages and the Razor Syntax <a href="http://www.microsoft.com/web/webmatrix/learn/">
                    with the WebMatrix tutorials</a>.
            </p>
        </div>
        <ul class="footer">
            <li>We're always looking for <a href="mailto:webapp@microsoft.com">bugs, feedback and
                suggestions!</a></li>
            <li>&copy; 2010-2011 Microsoft Corporation. Powered by IIS Express.</li>
        </ul>
    </div>
</body>
</html>
